package com.youan.serve.controller.swagger;

import com.youan.pangu.security.bean.LoginInfor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.Notice;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-12
*/
@Api(tags = "Notice管理接口")
@Validated
public interface NoticeControllerSwagger {

    @ApiOperation(value = "修改一个Notice实例")
    Notice updateNotice(@Validated Notice notice);

    @ApiOperation(value = "获取用户所有Notice实例")
    public List<Notice> selectAllNoticeByUser(LoginInfor loginInfor);

    @ApiOperation(value = "获取所有Notice实例")
    Notice addNotice(Notice notice, LoginInfor loginInfor);

    @ApiOperation(value = "根据主键删除一个Notice实例")
    void deleteNoticeByNoticeId(@NotBlank  String noticeId);

    @ApiOperation(value = "根据主键获取Notice实例")
    Notice selectNoticeByNoticeId(@NotBlank  String noticeId);

}

